package com.zk.spring5.test;

import com.zk.spring5.service.AccountService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author ZK
 * @Description
 * @time 2021/5/9 10:56
 * @note
 */
@RunWith(SpringJUnit4ClassRunner.class) // 单元测试框架
@ContextConfiguration("classpath:JDBC.xml") // 加载配置文件
public class JTest4 {
    @Autowired
    private AccountService accountService;

    @Test
    public void test(){
        accountService.transfers(1,2,1000);
    }

}
